''
'' ======================================
''
'' DTC Initium Utilities Function File
''
'' File Name: utility.txt
'' Default Location: C:\PSI-Utility-300\utility.txt
''
'' ======================================
''
'' March 2006 
'' February 2012
'' January 2020
''
'' Pressure Systems, Inc.
'' Measurement Specialties
'' TE Connectivity
''
'' ======================================
''
''
''function normal-speed
''resync
''wbb00 56
''resync
''endm
''
''function high-speed
''resync
''wbb00 32
''resync
''endm
''
''
'' ======================================
''

Function Accuracy-Display
aat USER-MODE
EndFunction

''
'' ======================================
''

Function Channel-Check
''
'' Command the Initium to acquire data, discover which port
'' has pressure applied, and display the port number and pressure 
'' applied.
''

channelcheck

EndFunction  


''
'' ======================================
''
''
Function Read-Valve-Pos
rd-valve-pos
EndFunction
''
''
'' ======================================
''

Function Discover-Scanners
''
'' Command the Initium to discover how many DTC scanners 
'' are attached, and report this information to the user
''

discover
EndFunction

''
'' ======================================
''

Function Span-Cal
''
'' perform a multi-point calibration of attached scanners
''
''   the user must supply the known calibration pressures
''
''   minimum, 2 pressures ( zero and full scale recommended )
''
''   up to 10 calibration pressures may be used 
''

Multi-Point-Cal  USER-MODE
''
EndFunction


''
'' ======================================
''

Function Coeffs-Disk-to-ESP
''
'' command the Initium to reload
'' DTC coefficients from a disk file
'' into a DTC scanner
''
LOAD-COEFFS-DISK-TO-DTC-SCANNER

EndFunction

''
'' ======================================
''

Function  Coeffs-ESP-to-Disk
''
'' command the Initium to retrieve the
'' DTC coefficients from a scanner,
'' and write them into a disk file
'' on the computer
''
''                                   
''
dump-dtc-coeffs-scanner-to-disk  111   1    1
''dump-dtc-coeffs-scanner-to-disk  111   2    1
''dump-dtc-coeffs-scanner-to-disk  111   3    1
''dump-dtc-coeffs-scanner-to-disk  111   4    1
''dump-dtc-coeffs-scanner-to-disk  111   5    1
''dump-dtc-coeffs-scanner-to-disk  111   6    1
''dump-dtc-coeffs-scanner-to-disk  111   7    1
''dump-dtc-coeffs-scanner-to-disk  111   8    1
''
''EndFunction

''
'' ======================================
''
''
Function IP-Address-Change
''
IP-Address-Change
''
EndFunction
''
''
'' ======================================
''
''

Function  Update-Firmware
''
'' Update the firmware in the INITIUM
'' 
update-firmware
''
EndFunction
''
''

''
'' ======================================
''


Function Default-Inits

''
'' Command the Initium to
''   a: set Gen-1 speed
''
''   default-inits does:
''
''      b: clear all internal tables
''      c: discover the attached scanners
''      d: re-initialize using default values
''

default-inits

EndFunction

''
'' ======================================
''

''
'' ======================================
''

function autoclose-off
autoclose off
endm


'' ======================================


Function Data-Point(AD2-1)
''
'' command the Initium to acquire a SINGLE
'' Data point, and display the data in
'' column format
''
ad2 1 1

EndFunction  

''
''function rtwave
''rtwave
''endm
''
''function rtfft
''rtfft
''endm
''
''
''function set-date
''
'' manually set the date to :   mm dd yy  hh mm ss
''
''sp5  05 08 17  21  30 00 
''printbuffer
''endm
''
''function showbuffer-on
''showbuffer on
''endm
''
''function showbuffer-off
''showbuffer off
''endm
''
